<template>
	<view class="content">
		<view class="title">确认您的接单信息</view>
		<view class="box">
			<view class="name">
				车牌号码 <text class="require">*</text> <text class="tips">请选择车辆</text>
			</view>
			<view class="carInfo">
				<view class="mycar">我的车辆</view>
				<view class="carlist">
					<view class="car">豫AB2456</view>
				</view>
				<navigator url="../mine/addCar" class="addcar" hover-class="none">添加车辆</navigator>
			</view>
		</view>
		<view class="box">
			<view class="name">
				请选择运费收款账户
			</view>
			<view class="carInfo cardInfo" @tap="choosed = !choosed">
				<view class="check">
					<uni-icons type="checkbox-filled" size="24" v-if="choosed" color="#666"></uni-icons>
					<uni-icons type="circle" size="24" v-else color="#666"></uni-icons>
				</view>
				<view class="list">
					<view class="item">
						收款人姓名： 张三
					</view>
					<view class="item">
						银行卡号： 4156487845875847
					</view>
					<view class="item">
						开户行： 74856784568
					</view>
				</view>
			</view>
		</view>
		<view class="box">
			<view class="name shipment">
				<text>预装量 <text class="require">*</text> </text>
				<input v-model="shipment" type="text" placeholder="输入抢单预装量"
					placeholder-style="font-size:24rpx;color:#666;" />
			</view>
		</view>
		<view class="box">
			<view class="name shipment">
				<text>本单预计可得运费</text>
				<input v-model="price" type="text" placeholder="填写完整信息获取报价"
					placeholder-style="font-size:24rpx;color:#ff6700;" />
			</view>
		</view>
		<view class="btnbox">
			<view class="btn " @tap="receiveOrder">抢单</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		reactive,
		onMounted
	} from 'vue';

	const choosed = ref(false)
	const shipment = ref('')
	const price = ref('')
	const receiveOrder = ()=>{
		
	}
</script>

<style lang="scss">
	.content {
		padding-bottom:150rpx ;
		box-sizing: border-box;
		background-color: #fff;

		.title {
			font-size: 36rpx;
			font-weight: bold;
			margin-top: 2rpx;
			padding:20rpx 40rpx;
			box-sizing: border-box;
			border-top: 2rpx solid #f7f7f7;
		}

		.box {
			padding: 20rpx 30rpx;
			box-sizing: border-box;
			border-radius: 8rpx;
			font-size: 24rpx;

			.name {
				padding: 20rpx 30rpx;
				box-sizing: border-box;
				background-color: #f7f7f7;

				.require {
					color: #eb0000;
					margin-left: 8rpx;
				}

				.tips {
					margin-left: 20rpx;
					color: #666;
				}
			}

			.carInfo {
				padding: 30rpx 30rpx;
				box-sizing: border-box;
				background-color: #fff6e4;

				.mycar {
					font-size: 24rpx;
					color: #666;
				}

				.carlist {
					margin-top: 20rpx;

					.car {
						color: #666;
						font-size: 24rpx;
						width: 120rpx;
						line-height: 40rpx;
						border: 2rpx solid #666;
						padding: 0 10rpx;
						border-radius: 4rpx;
					}
				}

				.addcar {
					line-height: 80rpx;
					border-radius: 10rpx;
					text-align: center;
					margin-top: 30rpx;
					background-color: #ffb900;
					font-size: 28rpx;
				}
			}

			.cardInfo {
				display: flex;
				justify-content: space-between;
				align-items: center;
				gap: 30rpx;
				color: #666;

				.check {
					width: 50rpx;
				}

				.list {
					width: 560rpx;
					display: flex;
					flex-direction: column;
					gap: 20rpx;
				}
			}

			.shipment {
				display: flex;
				align-items: center;
				gap: 30rpx;
			}
		}

		.btnbox {
			width: 100%;
			height: 150rpx;
			position: fixed;
			bottom: 0;
			left: 0;
			width: 100%;
			margin-top: 30rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			border-top: 2rpx solid #f7f7f7;

			.btn {
				width: 610rpx;
				height: 70rpx;
				background-color: #ffc400;
				line-height: 70rpx;
				text-align: center;
				border-radius: 12rpx;
				font-size: 26rpx;
			}
		}
	}
</style>